import authUtils from '@/utils/authUtils'

const license = authUtils.getLocalUserData().license || {}

let buttons = []

if (license && license.type === 'private') {
  buttons = []
} else {
  buttons = [
    {
      i18nName: 'Layout.globalAlert.money',
      type: 'primary',
      callback: ({ vm, dialog }) => {
        window.open(
          'https://qy.do1.com.cn/qwy/vm/module/service.html#/open/home?type=viprespect_oapackage'
        )
      }
    }
  ]
}

export default {
  buttons,
  showClose: false
}
